package adv.i31.robot;

import android.opengl.Matrix;

public class Util {

	public static void print4x4Matrix(float[] r) {
		float[] f = new float[16];
		Matrix.transposeM(f, 0, r, 0);
		System.out.println("---------------------------");
		for (int i = 0; i < 4; i++) {
			System.out.format("%6.2f %6.2f %6.2f %6.2f\n", f[i * 4], f[i * 4 + 1], f[i * 4 + 2],
					f[i * 4 + 3]);
		}
		System.out.println("-----------------------------");
	}

	public static void printVector(float[] f) {
		System.out.println("---------------------------");
		for (int i = 0; i < 1; i++) {
			System.out.format("%6.2f %6.2f %6.2f %6.2f\n", f[i * 4], f[i * 4 + 1], f[i * 4 + 2],
					f[i * 4 + 3]);
		}
		System.out.println("-----------------------------");
	}
}
